# -*- coding: utf-8 -*-

from common import BaseHandler
class HomeHandler(BaseHandler): 
    def get(self):  
        self.render('report/report.html')
class InstituesHandler(BaseHandler): 
    def get(self):  
        institutes = []
        for inst in self.db.institues.find(): institutes.append(inst)
        self.render('report/institues.html',institutes=institutes) 

class PdfViewerHandler(BaseHandler): 
    def get(self):   
        self.render('report/viewer.html') 
        
handlers = [
    ('/report', HomeHandler),
    ('/report/institutes', InstituesHandler),
    ('/report/view', PdfViewerHandler),
] 